<!-- <template>
	<view>
		<view class="top-nav">
			<view class="status_bar" :style="{height:statusBarHeight + 'px'}"></view>
			<view class="nav-header" :style="{height:navigationBarHeight + 'px'}">
				<view class="view_1">
					<text class="ri-arrow-left-s-line icon" @click="back"></text>
					<text class="t1">我的订单</text>
				</view>
			</view>
		</view>


		<view class="view_2">
			<view>
				<view class="neirong">
					<image src="../../static/image/o1.png" ></image>
					
					<text>当前没有订单，来一杯吧</text>			
				</view>
				
				<button id="but" type="default" @click="toTake">去点单</button>
			</view>
		</view>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: 0,
				navigationBarHeight: 0,
				menuButtonHeight: 0,
				navigationBarAndStatusBarHeight: 0,
			}
		},
		methods: {
			getSystemInfo() {
				this.statusBarHeight = uni.getStorageSync('statusBarHeight');
				this.navigationBarHeight = uni.getStorageSync('navigationBarHeight');
				this.menuButtonHeight = uni.getStorageSync('menuButtonHeight') + 'px';
				this.navigationBarAndStatusBarHeight = uni.getStorageSync('statusBarHeight') + uni.getStorageSync(
					'navigationBarHeight') + 'px';
				console.log(this.navigationBarHeight)
			},
			back(){
				uni.switchTab({
					url:"/pages/mine/mine"
				})
			},
			toTake(){
				uni.switchTab({
					url:"/pages/takeFood/takeFood"
				})
			}
		},
		mounted() {
			this.getSystemInfo();

		}

	}
</script>

<style lang="less">
	.status_bar {
		width: 100%;
	}

	.top-nav {
		background: #FFFFFF;
	}
	.nav-header{
		width: 600rpx;
	}

	.view_1 {
		display: flex;
		align-items: center;
		width: 6000rpx;
		height: 50rpx;
		background: #FFFFFF;
		margin: 15rpx 0 0 40rpx;

		.icon {
			margin-top: -3rpx;
			font-size: 60rpx;
		}

		.t1 {
			letter-spacing: 2rpx;
			margin-bottom: 10rpx;
			margin-left: 194rpx;
			font-size: 30rpx;
			font-weight: 600;
		}
	}

	page {
		background: #f5f5f5 ;
	}

	.view_2 {
		width: 750rpx;
		height: 520rpx;
		margin-top: 20rpx;

		

	}

	.neirong{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 32rpx;
		image{
			width: 244rpx;
			height: 305rpx;
			margin-top: 200rpx;
		}
		text{
			font-size: 30rpx;
			color: #007f61;
			margin-top: 30rpx;
		}
	}
	
	#but{
		width: 200rpx;
		height: 70rpx;
		line-height: 70rpx;
		background: #007f61;
		color: #FFFFFF;
		margin-top: 70rpx;
		font-size: 28rpx;
	}
</style>
 -->